import { MemoryRouter, Route, Routes } from 'react-router';
import { routes } from './router';
import './App.css';

export function App() {
  return (
    <MemoryRouter>
      <Routes>
        {routes.map((route) => (
          <Route key={route.path} path={route.path} element={<route.component />} />
        ))}
      </Routes>
    </MemoryRouter>
  );
}
